package AC.Controller;

import ClimateControlProcessor.ClimateObjects.Constant;
import ClimateControlProcessor.ClimateObjects.Constant.FANDIRECTION;
import ClimateControlProcessor.Process;
import android.view.View;
import android.widget.ToggleButton;

public class FanDirection {
	
	/*
	 *  Code to control front air direction
	 */
	public void OnClickButton1(View v ){
		Process.processAirFlowDirection(FANDIRECTION.HeadOnly);
		Constant.currentACConfig.airDirection = FANDIRECTION.HeadOnly;
	}
	
	/*
	 *  Code to control HeadNFoot air direction
	 */	
	public void OnClickButton2(View v ){
		Process.processAirFlowDirection(FANDIRECTION.HeadNFoot);
		Constant.currentACConfig.airDirection = FANDIRECTION.HeadNFoot;
	}
	
	/*
	 *  Code to control FootOnly air direction
	 */	
	public void OnClickButton3(View v ){
		Process.processAirFlowDirection(FANDIRECTION.FootOnly);
		Constant.currentACConfig.airDirection = FANDIRECTION.FootOnly;
	}
	
	/*
	 *  Code to control DefrostNFoot air direction
	 */	
	public void OnClickButton4(View v ){
		Process.processAirFlowDirection(FANDIRECTION.DefrostNFoot);	
		Constant.currentACConfig.airDirection = FANDIRECTION.DefrostNFoot;
	}
	
	/*
	 *  Code to control Defrostonly air direction
	 */	
	public void OnClickButton5(View v ){
		Process.processAirFlowDirection(FANDIRECTION.Defrostonly);
		Constant.currentACConfig.airDirection = FANDIRECTION.Defrostonly;
	}
	
	/*
	 *  Code to control Recirculation air direction
	 */	
	public void OnClickButton6(View v ){
		Process.processAirFlowDirection(FANDIRECTION.Recirculation);	
		Constant.currentACConfig.airDirection = FANDIRECTION.Recirculation;
	}
}
